(function($) {
    var $miniPlayer = function(options) {
     	var defaults = {    
    		wraperID: 'topbar-player' 
   		};
    	var settings = jQuery.extend(defaults, options);
    	var wraper=$("#"+settings.wraperID);
    	var playerdom="<div id=\"topbar-player_hidden\" class=\"jp-jplayer\"></div><div class=\"jp-audio\" id=\"jp_container_1\"><div class=\"jp-type-single\"><div class=\"jp-gui jp-interface\"><ul class=\"jp-controls\"><li><a tabindex=\"1\" class=\"jp-play\" href=\"javascript:;\" style=\"display: block;\">播放</a></li><li><a tabindex=\"1\" class=\"jp-pause\" href=\"javascript:;\" style=\"display: none;\">暂停</a></li></ul><div class=\"jp-progress\"><div class=\"jp-seek-bar\" style=\"width: 100%;\"><div class=\"jp-play-bar\" style=\"width: 0%;\"></div></div></div><div class=\"jp-song-name-bar\"><div class=\"jp-song-name\">Love player</div></div></div></div></div>";
    	$(wraper).append(playerdom);
    }
    $.miniPlayer = function(options){ return new $miniPlayer(options); }    
    return $.miniPlayer;
})(jQuery);